<!DOCTYPE html>
<html dir="ltr">

<head>
  <meta charset="UTF-8">
  <title>Item - Icons</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <script src="/dist/ionic.js"></script>
</head>

<body>
  <ion-app>

      <ion-header>
        <ion-toolbar>
          <ion-title>Item Icons</ion-title>
        </ion-toolbar>
      </ion-header>

      <ion-content id="content">
        <ion-item detail>
          <ion-label>
            ion-item [detail] attr
          </ion-label>
        </ion-item>

        <ion-item href="#">
          <ion-label>
            a[ion-item] w/ push detail
          </ion-label>
        </ion-item>

        <ion-item onclick="testClick(event)">
          <ion-label>
            button[ion-item] w/ push detail
          </ion-label>
        </ion-item>

        <ion-item href="#">
          <ion-label>
            a[ion-item] w/ right side default icon
          </ion-label>
          <ion-icon name="information-circle" slot="end"></ion-icon>
        </ion-item>

        <ion-item href="#">
          <ion-label>
            a[ion-item] w/ right side large icon
          </ion-label>
          <ion-icon name="information-circle" size="large" slot="end"></ion-icon>
        </ion-item>

        <ion-item href="#">
          <ion-label>
            a[ion-item] w/ right side small icon
          </ion-label>
          <ion-icon name="information-circle" size="small" slot="end"></ion-icon>
        </ion-item>

        <ion-item onclick="testClick(event)">
          <ion-icon name="star" slot="start"></ion-icon>
          <ion-label>
            button[ion-item] w/ left side icon
          </ion-label>
        </ion-item>

        <ion-item onclick="testClick(event)" detail="false">
          <ion-icon name="flag" slot="start"></ion-icon>
          <ion-label>
            button[ion-item][detail="false"]
          </ion-label>
        </ion-item>

        <ion-item>
          <ion-icon name="flag" slot="start"></ion-icon>
          <ion-label>
            ion-item w/ both side icons
          </ion-label>
          <ion-icon name="checkmark" slot="end"></ion-icon>
        </ion-item>

        <ion-item href="#">
          <ion-label>
            a[ion-item] w/ two right side icons
          </ion-label>
          <ion-icon name="checkmark-circle" slot="end"></ion-icon>
          <ion-icon name="shuffle" slot="end"></ion-icon>
        </ion-item>

        <ion-item onclick="testClick(event)">
          <ion-icon name="clipboard" slot="start"></ion-icon>
          <ion-icon name="remove-circle" slot="start"></ion-icon>
          <ion-label>
            button[ion-item] w/ two left side icons
          </ion-label>
        </ion-item>

        <ion-item onclick="testClick(event)">
          <ion-label>
            Red Balloons
          </ion-label>
          <ion-badge slot="end">99</ion-badge>
        </ion-item>

        <ion-item>
          <ion-label>
            Problems
          </ion-label>
          <ion-badge slot="end">99</ion-badge>
        </ion-item>
      </ion-content>

  </ion-app>

  <script>
    function testClick(ev) {
      console.log('CLICK!', ev.target.tagName, ev.target.textContent.trim());
    }
  </script>
</body>

</html>
